<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
	<link rel="stylesheet" href="../../static/css/bootstrap.css">
	<link rel="stylesheet" href="../../static/css/main.css">
	<script src="../../static/js/jquery-3.4.1.min.js"></script>
	<script src="../../static/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
	<div class="row">
		<!-- 导航栏 -->
		<div class="header" style="margin-top: 2%;">
			<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
			<div class="row">
			<div class="col-md-10">
				<ul class="nav nav-pills">
					<li role="presentation" ><a href="">首页</a></li>
					<li role="presentation">
						<a class="dropdown-toggle" data-toggle="dropdown"  role="button" aria-haspopup="true" aria-expanded="false">
							消息热点 <span class="caret"></span>
						  </a>
						  <ul class="dropdown-menu">
							<li role="presentation"><a href="/news/">今日焦点</a></li>
							<li role="presentation"><a href="/newcar/">新车速递</a></li>
							<li role="presentation"><a href="#">行业动态</a></li>
							<li role="presentation"><a href="#">车辆评测</a></li>
						  </ul>
					</li>
					<li role="presentation"><a href="/aboutcar/">关于汽车</a></li>
					<li role="presentation"><a href="#">降价</a></li>
					<li role="presentation"><a href="#">地区销售详细</a></li>
					<li role="presentation"><a href="#">经销商</a></li>
					<li role="presentation"><a href="/publicpraise/">口碑</a></li>
			  	</ul>
			</div>
			<div class="col-md-2 hidden-sm hidden-xs">
                 <ul class="nav nav-pills user_pic">

                        {% if user.user_img %}
                        <li role="presentation" ><a><img src="{{  user.user_img }}" alt="" ><div class="about_me">关于我</div></a></li>
                            {% else %}
                         <form action="/insertProductData/"  method="post" enctype="multipart/form-data">
                            {% csrf_token %}
                            <input type="file" name="image">
                            <button type="submit">暂无头像，请添加</button>
                            </form>
                            {% endif %}
                        <li role="presentation" ><a>{{ user.UserName }}</a></li>

                </ul>
			</div>

			</div>
		</div>
		</div>
	

        <div class="user">
            <div class="row">
                <div class="col-md-12">
                    <div class="row">
                        <div class="col-md-8" style="margin-top: 1%;">
                            <button class="btn btn-danger">上次登录:<span>{{ user.Last_login }}</span></button>
                            <div class="jumbotron" style="margin-top: 2%;">
                                <h1>Hello, world!</h1>
                                <p>...</p>
                                <p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
                              </div>
                        </div>

                        <div class="col-md-4">
                            <button class="btn btn-success" style="margin-top: 1%;">收藏列表</button></button>
                            <div class="list-group" style="margin-top: 1%;">
                                <div class="col-md-12">
                                    {% for i in cars %}
                                    <div class="row">
                                        <p class="col-md-6">i.Carname</p>
                                        <p class="col-md-6">i.CarPrice</p>
                                    </div>
                                       {% endfor %}
                                </div>
                                
                                </a>
                              
                              </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>

	</div>
	
</div>


</body>
</html>